package uk.co.accolade.clash.core;

import uk.co.accolade.clash.multicast.Broadcaster;

public class ChangeHandlerFactory {

    private RemoteChangesHandler remoteChangesHandler;
    private LocalChangesHandler localChangesHandler;

    public ChangeHandlerFactory( ChangesRegistry changesRegistry, Broadcaster broadcaster ) {
        this.remoteChangesHandler = new RemoteChangesHandler( changesRegistry );
        this.localChangesHandler = new LocalChangesHandler(changesRegistry, broadcaster);
    }

    public ChangeHandler getRemoteChangesHandler() {
        return remoteChangesHandler;
    }

    public LocalChangesHandler getLocalChangesHandler() {
        return localChangesHandler;
    }
}
